package com.test.huffmanserver.dto;

import java.util.List;
import java.util.Map;

public class HuffmanDto {
    private Map<Byte,String> codes;
    private Map<Integer,String>  specialMap;
    private List<Byte> byteList;
    private List<String> preArray;
    private double compressionRatio;
    private String data;

    public Map<Byte, String> getCodes() {
        return codes;
    }

    public void setCodes(Map<Byte, String> codes) {
        this.codes = codes;
    }

    public Map<Integer, String> getSpecialMap() {
        return specialMap;
    }

    public void setSpecialMap(Map<Integer, String> specialMap) {
        this.specialMap = specialMap;
    }

    public List<Byte> getByteList() {
        return byteList;
    }

    public void setByteList(List<Byte> byteList) {
        this.byteList = byteList;
    }

    public List<String> getPreArray() {
        return preArray;
    }

    public void setPreArray(List<String> preOrder) {
        this.preArray = preOrder;
    }


    public double getCompressionRatio() {
        return compressionRatio;
    }

    public void setCompressionRatio(double compressionRatio) {
        this.compressionRatio = compressionRatio;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "HuffmanDto{" +
                "codes=" + codes +
                ", specialMap=" + specialMap +
                ", byteList=" + byteList +
                ", preArray=" + preArray +
                ", compressionRatio=" + compressionRatio +
                ", data='" + data + '\'' +
                '}';
    }
}
